package com.mango.iot.gateway.http.utils;


import com.mango.iot.gateway.http.consts.AppBizException;
import com.mango.iot.gateway.http.consts.ResultCode;

/**
 * 通用业务异常构建工具类
 *
 * @author liangfeihu
 * @since 2021/8/20 15:04
 */
public class AppBizExceptionUtil {

    public static AppBizException build(ResultCode code) {
        return new AppBizException(code.getCode(), code.getMessage());
    }

}
